package com.example.czy.exception;

import lombok.Getter;

/**
 * 基础异常
 * @author czy
 * @date 2023-12-29 15:31:08
 **/
@Getter
public class BaseException extends RuntimeException {
    protected Integer code;


    public BaseException(String message) {
        super(message);
    }

    public BaseException(String message, Throwable cause) {
        super(message, cause);
    }

    public BaseException(Integer code, String message) {
        super(message);
        this.code = code;
    }

    public BaseException(Integer code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }

}
